'use strict';
import * as Koa from 'koa';
import { router, prefix } from '../middleware/router';
import { response } from '../middleware/result';
import { platform_mechantcase_record_Service } from '../service/platform_mechantcase_record';


@prefix('platformmerchantcase')
class platformcashrecordController {
   
    //添加提现记录
    @router('/create', { method: 'post' })
    async save(ctx: Koa.Context) {
     let data = await platform_mechantcase_record_Service.craeterecord(ctx.request.body);
        response(ctx, data);
    
    }
    
    //分页查询
    @router('/querybypage', { method: 'post' })
    async querywinebymid(ctx: Koa.Context) {
        let result = await platform_mechantcase_record_Service.querybypage(ctx.request.body);
        response(ctx, result);
    }


    
     //审核提现
     @router('/audit', { method: 'post' })
     async audit(ctx: Koa.Context) {
         let result = await platform_mechantcase_record_Service.audit(ctx.request.body);
         response(ctx, result);
     }


     //查询商户未审核提现
     @router('/querynoaudit', { method: 'post' })
     async querynoaudit(ctx: Koa.Context) {
         let result = await platform_mechantcase_record_Service.querynoaudit(ctx.request.body);
         response(ctx, result);
     }

}